home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / dosutils / tsbat50.zip / TESTANSI.BAT < prev    next >
DOS Batch File  |  1992-08-04  |  830b  |  27 lines

  1. echo off
  2. echo ┌───────────────────────────────────────────────────┐
  3. echo │ Test if a screen driver has been loaded or not    │
  4. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 4-Aug-92  │
  5. echo └───────────────────────────────────────────────────┘
  6. echo.
  7.  
  8. rem Requires the isansi.exe program at path
  9. set _found=
  10. if exist isansi.exe set _found=yes
  11. for %%d in (%path%) do if exist %%d\isansi.exe set _found=yes
  12. for %%d in (%path%) do if exist %%disansi.exe set _found=yes
  13. if not "%_found%"=="yes" goto _no_isansi
  14.  
  15. isansi
  16. if errorlevel==1 if not errorlevel==2 echo No ansi-type screen driver is available
  17. if errorlevel==0 if not errorlevel==1 echo An ansi-type screen driver is available
  18. goto _out
  19.  
  20. :_no_isansi
  21. echo ISANSI.EXE must be in the present directory or at path.
  22. goto _out
  23.  
  24. :_out
  25. set _found=
  26. echo on
  27.